<div class="row-fluid">
    <div class="span12">
        <form action="<?php echo $this->url('admin/child',array('controller'=>'categories','action'=>'edit','id'=>$cateEdit->id)); ?>" method="post" class="form-horizontal">
            <fieldset>
                <legend>Add Category</legend>
                <div class="control-group">
                    <label class="control-label" for="title">Title</label>
                    <div class="controls">
                        <input type="text" class="input-xlarge " id="title" name="title" value="<?php echo $cateEdit->title; ?>" >
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label" for="selectError3">Parent Category</label>
                    <div class="controls">
                        <select id="selectError3" name="parent_cat">
                            <option value="0">Select Parent category</option>
                            <?php foreach($cate as $itemCate):?>
                                <option <?php if($itemCate->id == $cateEdit->cat_parent) echo "selected='selected'" ?> value="<?php echo $itemCate->id; ?>"><?php echo $itemCate->title ?></option>
                            <?php endforeach  ?>
                        </select>
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label" for="selectError3">Sort Order</label>
                    <div class="controls">
                        <input type="text" name="sort_order" value="<?php echo $cateEdit->sort_order ?>">
                    </div>
                </div>
                <div class="form-actions">
                    <button type="submit" name="submit" class="btn btn-primary">Save changes</button>
                    <button type="reset" class="btn">Cancel</button>
                </div>
            </fieldset>
        </form>
    </div>
</div>